const HTTP = require("./request.js");

module.exports = {

    "getCategories":function(){
        return HTTP({
            url:"https://api-hmugo-web.itheima.net/api/public/v1/categories",
        })
    },
    "getGoodsSearch":function(cid){
        return HTTP({
            method:"get",
            data:{cid:cid.cid},
            url:"https://api-hmugo-web.itheima.net/api/public/v1/goods/search",          
        })
    },
}